package org.mitoma.logger.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class LoggerListPanel extends Composite {

  private static LoggerListUiBinder uiBinder = GWT
                                                 .create(LoggerListUiBinder.class);

  interface LoggerListUiBinder extends UiBinder<Widget, LoggerListPanel> {
  }

  public LoggerListPanel() {
    initWidget(uiBinder.createAndBindUi(this));
  }

  @UiHandler("selectLogger")
  void newLogger(ClickEvent event) {
    GlobalRepository.moveToSelectLogger();
  }

}
